#ifndef LOGINDIALOG_H
#define LOGINDIALOG_H

#include <QDialog>

namespace Ui {
class LoginDialog;
}

class LoginDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit LoginDialog(QWidget *parent = 0);
    explicit LoginDialog(QWidget *parent, const QString& username, const QString& password);
    ~LoginDialog();

    virtual void accept();

    void  setUserName(const QString& username);
    const QString& userName(){ return userName_; }

    void  setPassword(const QString& password);
    const QString& password(){ return password_; }

private:
    Ui::LoginDialog *ui;
    QString userName_;
    QString password_;
};

#endif // LOGINDIALOG_H
